package com.woniuxy.three.pms.dao;

import java.util.List;

import com.woniuxy.three.pms.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserBean record);

    int insertSelective(UserBean record);

    UserBean selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserBean record);
    
    int updateByPrimaryKey(UserBean record);

    //根据用户名模糊查找
    List<UserBean> findUserByKeyWord(String name);

    //根据vip等级查询
    List<UserBean> finUserByVip(String vip);

    //根据电话查找会员
    UserBean findUserByMobile(String mobile);

    //查找所有的会员
    List<UserBean> findAllUser();
}